<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>批量新增码值</title>
</head>
<lui:context/>
<u:View basePath="/res-system/code" userJS="codeInfoBatchAdd" delayLoadJs="false">
<body>
	<lui:dialogBody>
	    <form class="m-cust m-narrow" id='codeInfoBatchAddFrm'>
	    	<sys:dropCodeSet codeTypes="codeInfoRules" id="codeSet"/>
	    	<div class="form-group m-narrow row">
				<div class="col-xs-12">
					<div class="col-xs-3">
						<label class='m-label m-float-right' for="rule">规则：</label>
					</div>
					<div class="col-xs-8">
						<lui:dropList id="rule" name="rule" className="form-control m-input" dropValues="codeSet.codeInfoRules"/>
					</div>
				</div>
			</div>
			<div class="form-group m-narrow row">
				<div class="col-xs-12">
					<div class="col-xs-3">
						<label class='m-label m-float-right' for="text">文本：</label>
					</div>
					<div class="col-xs-8">
						<textarea rows="4" cols="" name="text" class="form-control m-input"></textarea>
					</div>
				</div>
			</div>
	    	<lui:ajax id="codeInfoBatchAddAjax" url="${ctx }/sys/code/codeInfo/batch/add/${requestScope.typeId }" formQuery="#codeInfoBatchAddFrm" 
	    		formSubmit="true" onSuccess="CodeInfoBatchAddPage.onBatchAddSucc" type="post" contentType="application/x-www-form-urlencoded"/>
		</form>
	</lui:dialogBody>
	<lui:dialogFooter>
       <button class="btn btn-primary m-btn" type="button" onclick="CodeInfoBatchAddPage.save()">保存</button>
       <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
    </lui:dialogFooter>
</body>
</u:View>
</html>